package cn.edu.hbpu.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author lcy
 * @date 2022/8/7 16:09
 * @description 收货地址管理
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("address")
public class Address {
    /**
     * 用户id
     */
    @JsonProperty("userId")
    private String userId;
    /**
     * 收货人 姓名
     */
    @JsonProperty("receiveName")
    private String receiveName;
    /**
     * 收货人 电话
     */
    @JsonProperty("receivePhone")
    private String receivePhone;
    /**
     * 收货人 省份
     */
    @JsonProperty("receiveProvince")
    private String receiveProvince;
    /**
     * 收货人 城市
     */
    @JsonProperty("receiveCity")
    private String receiveCity;
    /**
     * 收货人 区县
     */
    @JsonProperty("receiveDistrict")
    private String receiveDistrict;
    /**
     * 收货人详细地址
     */
    @JsonProperty("receiveAddress")
    private String receiveAddress;

    @TableField(fill = FieldFill.INSERT)
    @JsonProperty("createTime")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("updateTime")
    private LocalDateTime updateTime;
}
